-- card: 36875 from stack: in.5 -- bmap block id: 17574 -- flags: 0000 -- background id: 3858 -- name: MFIsRunning ----- HyperTalk script ----- on HideObjects hide cd btn "Try It!" end HideObjects on ShowObjects show cd btn "Try It!" end ShowObjects -- part 1 (button) -- low flags: 00 -- high flags: A002 -- rect: left=82 top=185 right=219 bottom=175 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 8192 -- line height: 16 -- part name: Try it! ----- HyperTalk script ----- on mouseUp global errGlobal put MFIsRunning("noDialog:errGlobal") into MFActive if errGlobal ≠ empty then answer "Error: “" & errGlobal & "”" put empty into errGlobal else if MFActive = true then put "is" into theVerb else put "is not" into theVerb end if answer "MultiFinder" && theVerb && "active." end if end mouseUp -- part contents for background part 38 ----- text ----- 29/50 -- part contents for background part 20 ----- text ----- Indicates whether MultiFinder is currently running. This information is especially useful when launching applications from HyperCard as the state of HyperCard upon returning from an application is quite different when under Finder and MultiFinder (ie. all global variable values are lost when under Finder, etc.). Calling syntax : MFIsRunning(<“noDialog”:errorGlobal>) Returns "TRUE" or "FALSE".